﻿namespace Ganss.Excel.Tests.Data
{
    class ProductIndex
    {
        [Column(1)]
        public string Price { get; set; }

        [Column(Letter = "C")]
        public string Name { get; set; }

        [Column(4)]
        public string Number { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is not ProductIndex o) return false;
            return o.Name == Name && o.Number == Number && o.Price == Price;
        }

        public override int GetHashCode()
        {
            return (Name + Number + Price).GetHashCode();
        }
    }
}